import React, { Component } from 'react'
export class Test extends Component {
  render() {
    return (
      <>
        <div>父组件</div>
        <hr />
        <TestSon name='coderwhy'></TestSon>
      </>
    )
  }
}
export class TestSon extends Component {
  render() {
    return (
      <>
        <div>子组件1</div>
        <TestSon2 {...this.props}></TestSon2>
      </>
    )
  }
}

export class TestSon2 extends Component {
  render() {
    return (
      <>
        <div>子组件2</div>
        {this.props.name}
      </>
    )
  }
}
